<?php

$rt = exec('cd /home/x/Documents/www/test/4/tt;git add --all;git commit -m "auto push";git push;git status');

print_r($rt);